/**
 * 
 */
package BNS.coloring;

import BNS.graphs.Node;

/**
 * @author Ian Gardner
 *
 */
public class SimuNode {

	public int index;
	public int color;
	public String toString() { return Integer.toString(index); }
	
	
	/**
	 * This class creates a node with only the elements needed for a simulation.
	 */
	public SimuNode(Node n) {
		index=n.getIndex();
		color=0;
	}
	
	public void swap(SimuNode a, SimuNode b) {
		a.index^=b.index;
		b.index^=a.index;
		a.index^=b.index;
	}

}
